<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>使用单位</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="description" content="This is my page">
	<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/icon.css">
	<script type="text/javascript" src="<%=basePath%>javascript/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/pub.js"></script>
	<script type="text/javascript" src="<%=basePath%>pages/basic/js/Depart.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/easyui_pub.js"></script>
	<script>window.onerror=hide_error_message;function hide_error_message(){return true;}</script>
	
	<style>
		body,html{
			padding:0;
			margin:0;
			height:100%;
		}  
		
		#layout{
			height: 100%;
			width:100%;
			border-top: none;
			border-bottom: none;
		}
	</style>
  </head>
  <body>
    <div class="easyui-layout" fit="true" id="layout" cellspacing="10">
    <div region="north" class="datagrid-toolbar" style="height:30px;" fit="false" onselectstart="return false">
        <a href="javascript:void(0)" onclick="Reload()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>
        <a href="javascript:void(0)" onclick="add()" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
		<a href="javascript:void(0)" onclick="change()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
		<a href="javascript:void(0)" onclick="setjc()" class="easyui-linkbutton" iconCls="icon-tip" plain="true">级长设置</a>
		<a href="javascript:void(0)" onclick="deleteOne()" class="easyui-linkbutton" iconCls="icon-no" plain="true">删除</a>
		<a href="javascript:void(0)" onclick="QryConndition()" class="easyui-linkbutton" iconCls="icon-search" plain="true">查询</a>
		<a href="javascript:void(0)" onclick="DeptEnable()" class="easyui-linkbutton" iconCls="icon-redo" plain="true">启用</a>
		<a href="javascript:void(0)" onclick="DeptUnable()" class="easyui-linkbutton" iconCls="icon-undo" plain="true">停用</a>
		<a href="action/basic/excels/download.file?Token=${param.Token}" target="_self" id="ExportS" class="easyui-linkbutton" iconCls="icon-download" plain="true">导出</a>						
	</div>	     
<!---------------------------------------使用单位树---------------------------------------------->	    
	<div region="west" split="true" style="width: 180px;" fit="false" id="DeptTree" onselectstart="return false" onmouseover="TreeshowScroll()" onmouseout="TreehideScroll()">
		<ul id="DepartTree" class="easyui-tree"></ul>
	</div>		
<!---------------------------------------使用单位树---------------------------------------------->
<!---------------------------------------显示列表---------------------------------------------->
		<div region="center" title="" style="background:#fafafa;" onselectstart="return false" onmouseover="showScroll()" onmouseout="hideScroll(event,this)">
            <table id="grid"></table>
		</div>
<!---------------------------------------显示列表---------------------------------------------->
	</div>
	
	
	
	
<!---------------------------------------------------- 增加 --------------------------------------------------------->
<div style="display:none;padding: 20px;" id="addDig">
	<form method="post" id="addForm" name="addForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:13px;" bgcolor="#FFFFFF">
				<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">编码</td>
	                <td bgcolor="#FFFFFF"><input id="addCODE" name="F_CODE"  validType=checkEmptyCode[]
	                 maxlength="50" required="true" missingMessage="必填" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">名称</td>
	                 <td bgcolor="#FFFFFF"><input id="addNAME" name="F_NAME"  validType=checkEmptyName[]
	                  maxlength="100" required="true" missingMessage="必填" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>	                 
	            </tr>  
	          	<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">助记符</td>
	                <td bgcolor="#FFFFFF"><input id="addMNEM" name="F_MNEM" maxlength="100" class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">类型</td>
	                 <td bgcolor="#FFFFFF">
	                   <input id="addTYPE" name="F_TYPE" validType=checkEmptyStr[] style="width:153px; height:22px" 
	                   required="true" missingMessage="必填"><font style="color:#FF0000">*</font></td>	   
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">准购证证号</td>
	                <td bgcolor="#FFFFFF"><input id="addPURCNO" name="F_PURCNO" maxlength="30" class="easyui-validatebox"/></td>	                 
	                 <td height="25" align="right" bgcolor="#FFFFFF">办证日期</td>
	                 <td bgcolor="#FFFFFF"><input id="addPURCDATE" name="F_PURCDATE" maxlength="8" validType=Isnum class="easyui-numberbox"/></td>	
	            </tr>	            
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">联系人</td>
	                <td bgcolor="#FFFFFF"><input id="addLINKMAN" name="F_LINKMAN" maxlength="15" class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">电话</td>
	                 <td bgcolor="#FFFFFF"><input id="addPHONE" name="F_PHONE" maxlength="30" class="easyui-numberbox"/></td>	
	            </tr>
	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">地址</td>
	                <td bgcolor="#FFFFFF" colspan="3"><input id="addADDR" name="F_ADDR"
	                  maxlength="100" class="easyui-validatebox" style="width:98%;"/></td>
	            </tr>  	     	            
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">开户银行</td>
	                <td bgcolor="#FFFFFF"><input id="addBANK" name="F_BANK" maxlength="40" class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">银行账号</td>
	                 <td bgcolor="#FFFFFF"><input id="addACCOUNT" name="F_ACCOUNT" maxlength="120" class="easyui-numberbox"/></td>	
	            </tr>	
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">执收单位编码</td>
	                <td bgcolor="#FFFFFF"><input id="addNTCODE" name="F_NTCODE" maxlength="50" validType=Isnum class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">执收单位名称</td>
	                 <td bgcolor="#FFFFFF"><input id="addNTNAME" name="F_NTNAME" maxlength="60" class="easyui-validatebox"/></td>	
	            </tr>	
	            <tr>
	            <td height="25" align="right" bgcolor="#FFFFFF">统一编码</td>
	                <td bgcolor="#FFFFFF"><input id="addUNITYCODE" name="F_UNITYCODE" maxlength="50" class="easyui-validatebox"/></td>
	            <td></td>
	            <td></td>
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">备注</td>
	                <td bgcolor="#FFFFFF" colspan="3"><input id="addMEMO" name="F_MEMO" maxlength="500" class="easyui-validatebox" id="txtcode" 
                     style="width:98%;"/></td>
	            </tr>   
				</table>
				<input id="addLASTTIME" name="F_LASTTIME" class="easyui-validatebox" style="display:none;" value="1212121"/>
	            <input id="addLEVEL" name="F_LEVEL" class="easyui-validatebox"/ style="display:none;" value="1">
	            <input id="addISLEAF" name="F_ISLEAF" class="easyui-validatebox" style="display:none;" value="1"/>
	            <input id="addSTATE" name="F_STATE" class="easyui-validatebox" style="display:none;" value="0"/>
			</form>
		</div>
<!---------------------------------------------------- 增加 --------------------------------------------------------->	

<!---------------------------------------------------- 修改 --------------------------------------------------------->
<div style="display:none;padding: 20px;" id="updateDig">
			<form method="post" id="updateForm" name="updateForm">
				<table align="center" cellspacing="5" style="line-height: 25px; font-size:13px;" bgcolor="#FFFFFF">
				<tr><td height="5"><input id="editID" name="F_ID" maxlength="10" style="display:none;"/></td></tr>
				<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">编码</td>
	                <td bgcolor="#FFFFFF"><input id="editCODE" name="F_CODE" 
	                 maxlength="50" required="true" missingMessage="必填" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">名称</td>
	                 <td bgcolor="#FFFFFF"><input id="editNAME" name="F_NAME" validType=checkEmptyName[] 
	                 maxlength="100" required="true" missingMessage="必填" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>	                 
	            </tr>  
	          	<tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">助记符</td>
	                <td bgcolor="#FFFFFF"><input id="editMNEM" name="F_MNEM" maxlength="100" class="easyui-validatebox"/></td>	                 
	                 <td height="25" align="right" bgcolor="#FFFFFF">类型</td>
	                 <td bgcolor="#FFFFFF">
	                   <input id="editTYPE" name="F_TYPE" validType=checkEmptyStr[] 
	                   style="width:153px; height:22px" required="true" missingMessage="必填"><font style="color:#FF0000">*</font></td>	 	   
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">联系人</td>
	                <td bgcolor="#FFFFFF"><input id="editLINKMAN" name="F_LINKMAN" maxlength="15" class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">电话</td>
	                 <td bgcolor="#FFFFFF"><input id="editPHONE" name="F_PHONE" maxlength="30" class="easyui-numberbox"/></td>	
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">准购证证号</td>
	                <td bgcolor="#FFFFFF"><input id="editPURCNO" name="F_PURCNO" maxlength="30" class="easyui-validatebox"/></td>	                 
	                 <td height="25" align="right" bgcolor="#FFFFFF">办证日期</td>
	                 <td bgcolor="#FFFFFF"><input id="editPURCDATE" name="F_PURCDATE" maxlength="8" class="easyui-numberbox"/></td>	
	            </tr>	            
	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">地址</td>
	                <td bgcolor="#FFFFFF" colspan="3"><input id="editADDR" name="F_ADDR"
	                 maxlength="100" class="easyui-validatebox" style="width:98%;"/></td>
	            </tr>              
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">开户银行</td>
	                <td bgcolor="#FFFFFF"><input id="editBANK" name="F_BANK" maxlength="40" class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">银行账号</td>
	                 <td bgcolor="#FFFFFF"><input id="editACCOUNT" name="F_ACCOUNT" maxlength="120" validType=Isnum class="easyui-validatebox"/></td>	
	            </tr>	
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">执收单位编码</td>
	                <td bgcolor="#FFFFFF"><input id="editNTCODE" name="F_NTCODE" maxlength="50" validType=Isnum class="easyui-validatebox"/></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">执收单位名称</td>
	                 <td bgcolor="#FFFFFF"><input id="editNTNAME" name="F_NTNAME" maxlength="60" class="easyui-validatebox"/></td>	
	            </tr>	
                <tr>
	            <td height="25" align="right" bgcolor="#FFFFFF">统一编码</td>
	                <td bgcolor="#FFFFFF"><input id="addUNITYCODE" name="F_UNITYCODE" maxlength="50" class="easyui-validatebox"/></td>
	            <td></td>
	            <td></td>
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">备注</td>
	                <td bgcolor="#FFFFFF" colspan="3"> <input id="editMEMO" name="F_MEMO" maxlength="500" class="easyui-validatebox" id="txtcode" style="width:98%;" /></td>
	            </tr>	 
				</table>
				<input id="editLASTTIME" name="F_LASTTIME" class="easyui-validatebox" style="display:none;"/>
	            <input id="editLEVEL" name="F_LEVEL" class="easyui-validatebox"/ style="display:none;">
	            <input id="editISLEAF" name="F_ISLEAF" class="easyui-validatebox" style="display:none;"/>
			</form>
		</div>
<!---------------------------------------------------- 修改 --------------------------------------------------------->	

<!---------------------------------------------------- 删除 --------------------------------------------------------->
	<form id="deleteForm" name="deleteForm" method="post" style="display:none;">
		<input name="F_ID" id="delId" type="hidden" />
	</form>	
<!---------------------------------------------------- 删除 --------------------------------------------------------->	

<!---------------------------------------------------- 查询 --------------------------------------------------------->	
		<div style="display: none; padding: 20px; font-size:14px;" id="queryDig">
			<form method="post" id="queryForm" name="queryForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px">
					<tr>
						<td align="right">
							编码
						</td>
						<td>
							<input name="F_CODE" id="code" validType=Isnum style="width: 212px;" onchange=checkdata(this.value,10)
								maxlength="50" class="easyui-validatebox" />
						</td>
					</tr>
					<tr>
						<td align="right">
							名称
						</td>
						<td>
							<input name="F_NAME" id="name" style="width: 212px;"
								maxlength="100" class="easyui-validatebox" />
						</td>
					</tr>
									<tr>
						<td align="right">
							类型
						</td>
						<td>
						<input id="qryTYPE" name="F_TYPE" style="width:212px; height:22px" class="easyui-validatebox"/>				
	                 	</td>
					</tr>
				</table>
			</form>
		</div>		
<!---------------------------------------------------- 查询 --------------------------------------------------------->		
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
		<div style="display: none; padding: 20px; font-size:14px;" id="SetJCDig">
			<form method="post" id="SetJCForm" name="SetJCForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
						<td align="right">
							级长
						</td>
						<td>
							<input name="F_ITEM1" id="codeLen" style="width: 212px;" required="true" missingMessage="必填" 
							maxlength="200"	class=easyui-numberbox /><font style="color:#FF0000">*</font>
						</td>
					</tr>

				</table>
			</form>
		</div>		
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
		<div style="display: none; padding: 20px; font-size:14px;" id="upLoadDig">
			<form method="post" id="upLoadForm" name="upLoadForm" action="action/basic/excels/uploadFile.file?Token=${param.Token}">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
						<td align="right">
							选择文件
						</td>
						<td> 
   		<span id="fileSpan"><input type="file" name="__file" id="uploadFile" style="height:25px; width:400px; float:left;"/></span>
   		<input value="导入" type="button" style="height:25px; width:120px; left:420px;" id="btnUpload" onClick="formSubmit()"/><br> 
  
						</td>
					</tr>

				</table>
			</form>
		</div>		
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
  </body>
</html>
